﻿using System;
using System.Data;
using System.Text;

namespace WinFormClient
{
    public class DataObjectParameters:DataObject
    {
        public DataObjectParameters(string tableName, int lengthForIgnoreParameter, ColumnMapCollection col)
            : base(tableName, tableName + "Parameters", "Parameters", lengthForIgnoreParameter,false, col)
        {
        }

        public DataObjectParameters(string tableName, ColumnMapCollection col)
            : base(tableName, tableName + "Parameters", "Parameters",false, col)
        {
        }

        public override void Builder()
        {
            string content = this.ParameterHeader() + this.UnlimitedQuery() + this.Const() + this.Footer();
            ////= this.Header(true)
            ////+ this.Fields()
            ////+ this.Const()
            ////+ this.Structure()
            ////+ this.Property()
            ////+ this.UnlimitedQuery()
            ////+ this.Footer()
            //;

            Tools.TextSaveToFile(content, "Parameters", this._className + ".cs");
        }
    }
}
